$(function() {
	$('#mySelect').change(function() {
		var seleValue = $("#mySelect").find("option:selected").text();
		var sele = $("#mySelect").val();
		if (sele == "0") {
			$(".tc_content ul li .address").html("上海");
		} else {
			$(".tc_content ul li .address").html(seleValue);
		}
	}) 
var page = 1;
var i = 6;
//向后 按钮
$(".labelRight").click(function() {
	var content = $("div.content");
	var content_list = $("div.content_list");
	var v_width = content.width();
	var len = content.find("ul li").length;
	var page_count = Math.ceil(len / i);
	if (!content_list.is(":animated")) {
		if (page == page_count) {
			$(".labelRight").css("background","#8e8e8e");
		/*	content_list.animate({
				left: '0px'
			}, "slow");  
			page = 1; */
		} else {
			content_list.animate({
				left: '-=' + v_width
			}, "slow");
				page++;
			}
		}
});
//往前 按钮
$(".labelLeft").click(function(){
	$(".labelRight").css("background","#FE0058");
		var content = $("div.content");
		var content_list = $("div.content_list");
		var v_width = content.width();
		var len = content.find("ul li").length;
		var page_count = Math.ceil(len / i);
		if (!content_list.is(":animated")) {
			if (page == 1) {
				/*content_list.animate({
					left: '-=' + v_width * (page_count - 1)
				}, "slow");
				page = page_count;*/
			} else {
				content_list.animate({
					left: '+=' + v_width
				}, "slow");
					page--;
				}
			}
		});
})